]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
renameFolderMenu: Move to non-legacy coding style
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 13 Sep 2019 03:19:02 +0000 (05:19 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 20 Sep 2019 15:53:42 +0000 (15:53 +0000)
Use proper indentation on multi-line methods calls and use single quotes on
button label.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/720

js/ui/appDisplay.js

index b1f9a122c71a898a343c6404cf615fd359345e2f..2d5283c6868a62c39969b87baaeb562a8f5d3619 100644 (file)
@@ -1735,10 +1735,10 @@ var RenameFolderMenu = class RenameFolderMenu extends PopupMenu.PopupMenu {
         // Focus the text entry on menu pop-up
         this.focusActor = this._entry.clutter_text;
 
-        this._entry.clutter_text.connect('notify::text',
-                                         this._validate.bind(this));
-        this._entry.clutter_text.connect('activate',
-                                         this._updateFolderName.bind(this));
+        this._entry.clutter_text.connect(
+            'notify::text', this._validate.bind(this));
+        this._entry.clutter_text.connect(
+            'activate', this._updateFolderName.bind(this));
 
         // Rename button
         this._button = new St.Button({
@@ -1746,7 +1746,7 @@ var RenameFolderMenu = class RenameFolderMenu extends PopupMenu.PopupMenu {
             reactive: true,
             button_mask: St.ButtonMask.ONE | St.ButtonMask.TWO,
             can_focus: true,
-            label: _("Rename"),
+            label: _('Rename'),
         });
         box.add_child(this._button);